import Cookies from 'js-cookie'

const adminToken = "admin_token";
const usertype = "type";
const userid = "id";
const userlevel = "level";
const userbid="bid";
const userpid = "pid";
const uids = "uid"
const userrole = "role";
export function getToken() {
  return Cookies.get(adminToken)
}

export function setToken(token) {
  return Cookies.set(adminToken, token)
}

export function removeToken() {
  return Cookies.remove(adminToken)
}
export function setid(id) {
  return Cookies.set(userid, id)
}
export function getid() {
  return Cookies.get(userid)
}
export function removeid() {
  return Cookies.remove(userid)
}





export function setrole(role) {
  return Cookies.set(userrole, role)
}
export function getrole() {
  return Cookies.get(userrole)
}
export function removerole() {
  return Cookies.remove(userrole)
}







export function settype(type) {
  return Cookies.set(usertype, type)
}
export function gettype() {
  return Cookies.get(usertype)
}
export function removetype() {
  return Cookies.remove(usertype)
}
export function setlevel(level) {
  return Cookies.set(userlevel, level)
}
export function getlevel() {
  return Cookies.get(userlevel)
}
export function removelevel() {
  return Cookies.remove(userlevel)
}
export function setbid(bid) {
  return Cookies.set(userbid, bid)
}
export function getbid() {
  return Cookies.get(userbid)
}
export function removebid() {
  return Cookies.remove(userbid)
}
export function setpid(pid) {
  return Cookies.set(userpid, pid)
}
export function getpid() {
  return Cookies.get(userpid)
}
export function removepid() {
  return Cookies.remove(userpid)
}
export function setuid(uid) {
  return Cookies.set(uids, uid)
}
export function getuid() {
  return Cookies.get(uids)
}